﻿//**************************
//开发人员：Morning Sun QQ:576830428  微信:MorningSun0125
//业务范围：网站开发、小程序开发、web应用开发,桌面程序开发,工控类软件开发等
//开发日期：2016年1月10日
//版本号：Version 3.0 CopyRight 2011-2029
//**************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileServer
{
    public  class WatchConfig
    {
        #region 成员变量
        /// <summary>
        /// 监控目录
        /// </summary>
        private string _WatchDir;
        public string WatchDir {
            get { return _WatchDir; }
            set { _WatchDir = value; }
        }


        /// <summary>
        /// 过滤器文件
        /// </summary>
        private string _WatchFilter="*.*";
        public string WatchFilter {
            get { return _WatchFilter; }
            set { _WatchFilter = value; }
        }

        /// <summary>
        /// 是否监控子目录
        /// </summary>
        private bool _ChildDir = true;
        public bool ChildDir
        {
            get { return _ChildDir; }
            set { _ChildDir = value; }
        }
        #endregion


        #region 默认构造
        /// <summary>
        /// 默认构造
        /// </summary>
        public WatchConfig()
        { 
        
        }
        #endregion


        #region 构造函数
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="Dir"></param>
        /// <param name="Filter"></param>
        /// <param name="Child"></param>
        public WatchConfig(string Dir, string Filter, bool Child)
        {
            this._WatchDir = Dir;
            this._WatchFilter = Filter;
            this._ChildDir = true;
        }
        #endregion
    }
}
